package com.szms.mobile.dto.db;

import com.szms.mobile.common.ITypeConverter;
import com.szms.mobile.enums.ColumnType;


public class ColumnDto {

    /**
     * 列对应的字段名称
     */
    private String fieldName;

    private String columnName;

    /**
     * 列类型
     * @return
     */
    private ColumnType columnType;

    private boolean primaryKey;

    private boolean autoIncrement;

    private ITypeConverter converter;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public ColumnType getColumnType() {
        return columnType;
    }

    public void setColumnType(ColumnType columnType) {
        this.columnType = columnType;
    }

    public boolean isPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(boolean primaryKey) {
        this.primaryKey = primaryKey;
    }

    public boolean isAutoIncrement() {
        return autoIncrement;
    }

    public void setAutoIncrement(boolean autoIncrement) {
        this.autoIncrement = autoIncrement;
    }

    public ITypeConverter getConverter() {
        return converter;
    }

    public void setConverter(ITypeConverter converter) {
        this.converter = converter;
    }
}
